﻿<?xml version="1.0" encoding="utf-8" ?>
<!--

TELEPORT CONFIGURATION FILE

This file contains one or more configurations to setup Teleport system at client-side

-->
<Configurations>

  <!--Configuration for Loopback connector. Server and client are on the same domain-->
  <Teleport>
    <Name>Loopback</Name>
    <!--Name of the class type that will be use as the connector-->
    <Connector>Thn.Communication.Teleporting.Connectors.Loopback.LoopbackConnector</Connector>
    <!--[Optional] name of the .dll file which contains the class-->
    <ContainerFile>Thn.Communication.dll</ContainerFile>
    <!--Whether request shall be written to logs. This should be enabled only for debugging purpose-->
    <Trace>True</Trace>
  </Teleport>
  
  <!--Configuration for Web Service connector-->  
  <Teleport>
    <Name>WebService</Name>
    <!--Name of the class type that will be use as the connector-->
    <Connector>Thn.Communication.Teleporting.Connectors.WebService.WebServiceConnector</Connector>
    <!--[Optional] name of the .dll file which contains the class-->
    <ContainerFile>Thn.Communication.Teleporting.Connectors.WebService.dll</ContainerFile>

    <!--Connector specific parameters-->
    <Url>http://localhost:31808/TeleportService/TeleportService.asmx</Url>    
    <!--[Optional] name of the teleporting method on web service-->
    <Method>TeleportRequest</Method>
    <!--[Optional] Xml namespace of the webservice (not the class namespace)-->
    <Namespace>http://tempuri.org/</Namespace>
    <!--Whether request shall be written to logs. This should be enabled only for debugging purpose-->
    <Trace>True</Trace>
  </Teleport>

  <!--Configuration for Manual Web Service connector-->
  <Teleport>
    <Name>Manual WebService</Name>
    <!--Name of the class type that will be use as the connector-->
    <Connector>Thn.Communication.Demo.Connectors.WebService.WebServiceConnector</Connector>
    <!--[Optional] name of the .dll file which contains the class-->
    <ContainerFile>Thn.Communication.Demo.Connectors.WebService.dll</ContainerFile>

    <!--Connector specific parameters-->
    <Url>http://192.168.0.16/TeleportService/TeleportService.asmx</Url>
    <!--<Url>http://localhost:57906/TeleportService/TeleportService.asmx</Url>-->
    <WebMethod>TeleportRequest</WebMethod>
    <!--Whether request shall be written to logs. This should be enabled only for debugging purpose-->
    <Trace>True</Trace>
  </Teleport>

  <!--Configuration for Secured Web Service connector-->
  <Teleport>
    <Name>Secure Webservice</Name>
    <!--Name of the class type that will be use as the connector-->
    <Connector>Thn.Communication.Teleporting.Connectors.WebService.WebServiceConnector</Connector>
    <!--[Optional] name of the .dll file which contains the class-->
    <ContainerFile>Thn.Communication.Teleporting.Connectors.WebService.dll</ContainerFile>

    <!--Connector specific parameters-->
    <Url>https://localhost/TeleportService/TeleportService.asmx</Url>
    <!--[Optional] name of the teleporting method on web service-->
    <Method>TeleportRequest</Method>
    <!--[Optional] Xml namespace of the webservice (not the class namespace)-->
    <Namespace>http://tempuri.org/</Namespace>

    <!--
      [Optional] Whether comsumming a SSL webservice.
      + true : mean SSL is enabled.
      + false: mean SSL is not enabled.
    -->
    <SSLEnabled>true</SSLEnabled>
    <!--
      [Optional] The way to validate certificate of SSL server:
      + Default: allow only valid SSL's certificate only.
      + TrustAll: allow all SSL's certificate.
    -->
    <SSLCertificate>TrustAll</SSLCertificate>
    <!--Whether request shall be written to logs. This should be enabled only for debugging purpose-->
    <Trace>True</Trace>
  </Teleport>

  <!--Configuration for Remoting connector-->
  <Teleport>
    <Name>Remoting</Name>
    <!--Name of the class type that will be use as the connector-->
    <Connector>Thn.Communication.Teleporting.Connectors.Remoting.ClientConnector</Connector>
    <!--[Optional] name of the .dll file which contains the class-->
    <ContainerFile>Thn.Communication.Teleporting.Connectors.Remoting.dll</ContainerFile>
    
    <!--Connector specific parameters-->
    <!--
      Possible values of:
        ChannelType: Tcp, Http, Ipc
        Formatter  : Binary, Soap
    -->
    <Server>localhost</Server> <!--Server is not required when channel is IPC-->
    <Port>8081</Port> <!--Port is not required when channel is IPC-->
    <Uri>TeleportService</Uri>
    <ChannelType>Tcp</ChannelType>
    <Formatter>Binary</Formatter>
    <!--Whether request shall be written to logs. This should be enabled only for debugging purpose-->
    <Trace>True</Trace>
  </Teleport>

  <!--Configuration for Remoting connector, using IPC channel-->
  <Teleport>
    <Name>Remoting - IPC</Name>
    <!--Name of the class type that will be use as the connector-->
    <Connector>Thn.Communication.Teleporting.Connectors.Remoting.ClientConnector</Connector>
    <!--[Optional] name of the .dll file which contains the class-->
    <ContainerFile>Thn.Communication.Teleporting.Connectors.Remoting.dll</ContainerFile>

    <!--Connector specific parameters-->
    <!--
      Possible values of:
        ChannelType: Tcp, Http, Ipc
        Formatter  : Binary, Soap
    -->
    <Uri>TeleportService</Uri>
    <ChannelType>Ipc</ChannelType>
    <Formatter>Binary</Formatter>
    <!--Whether request shall be written to logs. This should be enabled only for debugging purpose-->
    <Trace>True</Trace>
  </Teleport>

  <!--Configuration for Web Request connector-->
  <Teleport>
    <Name>Web Request</Name>
    <!--Name of the class type that will be use as the connector-->
    <Connector>Thn.Communication.Teleporting.Connectors.WebRequest.ClientConnector</Connector>
    <!--[Optional] name of the .dll file which contains the class-->
    <ContainerFile>Thn.Communication.Teleporting.Connectors.WebRequest.dll</ContainerFile>

    <!--Connector specific parameters-->    
    <Url>http://localhost:27395/WebRequest_Server/Teleport.tp</Url>
    <!--Whether request shall be written to logs. This should be enabled only for debugging purpose-->
    <Trace>True</Trace>
  </Teleport>
</Configurations>